package com.woai.vichat.wallet.act;
import com.woai.vichat.R;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.ImageView;
import android.view.ViewGroup;

import butterknife.BindView;
import butterknife.ButterKnife;
import com.woai.vichat.base.act.BasePActivity;
import com.woai.vichat.wallet.entity.WalletModel;
import com.woai.vichat.wallet.presenter.WalletPresenter;
import com.woai.common.util.IntentUtils;
import com.woai.common.util.ToastUtil;

/**
 * WalletAct
 * Created on 2018-06-23 12:39:42.
 * @author WuGefei
 */
public class WalletAct extends BasePActivity<WalletAct, WalletPresenter>{
         <!--模块-->
         <activity
           android:name="com.woai.vichat.wallet.act.WalletAct"
           android:screenOrientation="portrait"/>

    @BindView(R.id.titleBar)
    RelativeLayout titleBar;

    @BindView(R.id.tvTopTitle)
    TextView tvTitle;

    @BindView(R.id.iv_back)
    ImageView ivBack;

    @BindView(R.id.iv_right)
    ImageView ivRight;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_wallet);
        init();
    }

    protected void init() {
        ButterKnife.bind(this);
        titleBar.setVisibility(View.VISIBLE);
        ivBack.setVisibility(View.GONE);
        ivRight.setVisibility(View.GONE);
        tvTitle.setText("Wallet");
        request();
    }

    private void request(){
        presenter.request(this);
    }

    public void bindData(WalletModel model){

        if(model==null){

        }

    }

    @Override
    protected WalletPresenter createPresenter() {
        return new WalletPresenter();
    }
}